<div class="control-group">
    <?php echo form_open_multipart('guru/materi_kirim'); ?>
    <label class="control-label" for="input01">Judul Materi</label>
    <div class="controls">
        <input class="input-xlarge" type="text" name="judul" size="50">
    </div>
    <label class="control-label" for="input01">Mata Pelajaran</label>
    <div class="controls">
        <select name="mapel">
            <?php foreach ($mapel as $data) : ?>
                <option value="<?php echo $data->mapel_id ?>"><?php echo $data->mapel ?></option>
            <?php endforeach; ?>
        </select>
    </div>
    <label class="control-label" for="input01">Semester</label>
    <div class="controls">
        <select name="semester">
            <?php foreach ($semester as $data) : ?>
                <option value="<?php echo $data->semester_id ?>"><?php echo $data->semester ?></option>
            <?php endforeach; ?>
        </select>
    </div>
    <label class="control-label" for="input01">Tahun</label>
    <div class="controls">
        <select name="tahun">
            <?php foreach ($tahun as $data) : ?>
                <option value="<?php echo $data->tahun_id ?>"><?php echo $data->thn ?></option>
            <?php endforeach; ?>
        </select>
    </div>
    <label class="control-label" for="input01">File Materi</label>
    <div class="controls">
        <input type="file" name="userfile" size="20" class="input-file"/>
    </div>
    <p class="help-block">Ketikkan data di kolom di atas.</p>
    <button class="btn btn-warning" href="#"><i class="icon-plus icon-white"></i> Upload</button>
    <?php echo form_close() ?>
</div>